﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Duck:Animal,ISwim
    {
        public Duck(string name) : base(name)
        {

        }
        public void Swim()
        {
            Console.WriteLine("我是{0}，我会有用", this.Name);
        }

        public override void Eat()
        {
            Console.WriteLine("我是{0}，我喜欢吃饲料", this.Name);
        }
    }
}
